﻿using Acme.ConcreteMixDesign.TopicInformations;
using Microsoft.Extensions.Primitives;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Volo.Abp.Domain.Repositories;

namespace Acme.ConcreteMixDesign.Topics
{
    public interface ITopicRepository :IRepository<Topic, Guid>
    {
        /// <summary>
        /// 根据ID查询题目
        /// </summary>
        /// <param name="guid">id</param>
        /// <param name="include">是否开启贪婪加载</param>
        /// <param name="cancellation">查询拥有子实体的方法时，是否加载子实体集合</param>
        /// <returns></returns>
        Task<Answer> FindAnswerByIdAsync(Guid guid, bool include = true,CancellationToken cancellation = default);
    }
}
